package easycloud.ecs.web.service;

import javax.inject.Inject;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import easycloud.ecs.common.domain.Item;
import easycloud.ecs.common.repository.ItemRepository;

@Service
@Transactional(readOnly = true)
public class ItemService {

	private static final Log logger = LogFactory.getLog(ItemService.class);

	@Inject
	private ItemRepository itemRepository;

	public Item getItem(Integer itemId) {
		return itemRepository.findOne(itemId);
	}
}
